#[repr(u8)]pub enum OpenOption {
Capabilities(Vec<Capability>),
}Variants§
Capabilities(Vec<Capability>)
Implementations§
Source§impl OpenOption
impl OpenOption
pub fn from_wire<'a>( ctx: &ParserContext, buf: &'a [u8], ) -> IResult<&'a [u8], Self, BgpParserError<&'a [u8]>>
pub fn to_wire(&self, ctx: &ParserContext, out: &mut BytesMut) -> Result<()>
pub fn wire_len(&self, ctx: &ParserContext) -> Result<u16>
Trait Implementations§
Source§impl Debug for OpenOption
impl Debug for OpenOption
Source§impl<'de> Deserialize<'de> for OpenOption
impl<'de> Deserialize<'de> for OpenOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OpenOption
Source§impl<'_enum> From<&'_enum OpenOption> for OpenOptionDiscriminants
impl<'_enum> From<&'_enum OpenOption> for OpenOptionDiscriminants
Source§fn from(val: &'_enum OpenOption) -> OpenOptionDiscriminants
fn from(val: &'_enum OpenOption) -> OpenOptionDiscriminants
Converts to this type from the input type.
Source§impl From<OpenOption> for OpenOptionDiscriminants
impl From<OpenOption> for OpenOptionDiscriminants
Source§fn from(val: OpenOption) -> OpenOptionDiscriminants
fn from(val: OpenOption) -> OpenOptionDiscriminants
Converts to this type from the input type.
Source§impl IntoDiscriminant for OpenOption
impl IntoDiscriminant for OpenOption
Source§type Discriminant = OpenOptionDiscriminants
type Discriminant = OpenOptionDiscriminants
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl PartialEq for OpenOption
impl PartialEq for OpenOption
Source§fn eq(&self, other: &OpenOption) -> bool
fn eq(&self, other: &OpenOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenOption
impl Serialize for OpenOption
impl StructuralPartialEq for OpenOption
Auto Trait Implementations§
impl Freeze for OpenOption
impl RefUnwindSafe for OpenOption
impl Send for OpenOption
impl Sync for OpenOption
impl Unpin for OpenOption
impl UnsafeUnpin for OpenOption
impl UnwindSafe for OpenOption
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