Struct trust_dns_proto::openssl::tls_server::Stack
source · [−]pub struct Stack<T>(_)
where
T: Stackable;
This is supported on crate feature
dns-over-openssl
only.Expand description
An owned stack of T
.
Implementations
Methods from Deref<Target = StackRef<T>>
pub fn iter(&self) -> Iter<'_, T>
pub fn iter_mut(&mut self) -> IterMut<'_, T>
sourcepub fn get(&self, idx: usize) -> Option<&<T as ForeignType>::Ref>
pub fn get(&self, idx: usize) -> Option<&<T as ForeignType>::Ref>
Returns a reference to the element at the given index in the
stack or None
if the index is out of bounds
sourcepub fn get_mut(&mut self, idx: usize) -> Option<&mut <T as ForeignType>::Ref>
pub fn get_mut(&mut self, idx: usize) -> Option<&mut <T as ForeignType>::Ref>
Returns a mutable reference to the element at the given index in the
stack or None
if the index is out of bounds
sourcepub fn push(&mut self, data: T) -> Result<(), ErrorStack>
pub fn push(&mut self, data: T) -> Result<(), ErrorStack>
Pushes a value onto the top of the stack.
Trait Implementations
sourceimpl<T> ForeignType for Stack<T> where
T: Stackable,
impl<T> ForeignType for Stack<T> where
T: Stackable,
sourceimpl<T> IntoIterator for Stack<T> where
T: Stackable,
impl<T> IntoIterator for Stack<T> where
T: Stackable,
sourceimpl<'a, T> IntoIterator for &'a Stack<T> where
T: Stackable,
impl<'a, T> IntoIterator for &'a Stack<T> where
T: Stackable,
sourceimpl<'a, T> IntoIterator for &'a mut Stack<T> where
T: Stackable,
impl<'a, T> IntoIterator for &'a mut Stack<T> where
T: Stackable,
impl<T> Send for Stack<T> where
T: Stackable + Send,
impl<T> Sync for Stack<T> where
T: Stackable + Sync,
Auto Trait Implementations
impl<T> RefUnwindSafe for Stack<T> where
<T as Stackable>::StackType: RefUnwindSafe,
impl<T> Unpin for Stack<T>
impl<T> UnwindSafe for Stack<T> where
<T as Stackable>::StackType: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more