pub struct OriginList(/* private fields */);Expand description
Bounded list of Origin entries, typically the hop chain of a broadcast.
Guarantees len() <= MAX_HOPS. Construct via OriginList::new +
OriginList::push, or fall back to the fallible TryFrom<Vec<Origin>>.
Implementations§
Source§impl OriginList
impl OriginList
Sourcepub fn push(&mut self, origin: Origin) -> Result<(), TooManyOrigins>
pub fn push(&mut self, origin: Origin) -> Result<(), TooManyOrigins>
Append an Origin. Returns TooManyOrigins if the list is full.
Trait Implementations§
Source§impl Clone for OriginList
impl Clone for OriginList
Source§fn clone(&self) -> OriginList
fn clone(&self) -> OriginList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OriginList
impl Debug for OriginList
Source§impl Default for OriginList
impl Default for OriginList
Source§fn default() -> OriginList
fn default() -> OriginList
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for &'a OriginList
impl<'a> IntoIterator for &'a OriginList
Source§impl PartialEq for OriginList
impl PartialEq for OriginList
Source§fn eq(&self, other: &OriginList) -> bool
fn eq(&self, other: &OriginList) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OriginList
impl StructuralPartialEq for OriginList
Auto Trait Implementations§
impl Freeze for OriginList
impl RefUnwindSafe for OriginList
impl Send for OriginList
impl Sync for OriginList
impl Unpin for OriginList
impl UnsafeUnpin for OriginList
impl UnwindSafe for OriginList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more