pub struct UpdateMessage {
pub withdrawn_routes: Vec<IpPrefix>,
pub path_attributes: Vec<PathAttribute>,
pub announced_routes: Vec<IpPrefix>,
}Expand description
Represents a BGP Update message.
Fields§
§withdrawn_routes: Vec<IpPrefix>§path_attributes: Vec<PathAttribute>§announced_routes: Vec<IpPrefix>Implementations§
Source§impl UpdateMessage
impl UpdateMessage
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 Clone for UpdateMessage
impl Clone for UpdateMessage
Source§fn clone(&self) -> UpdateMessage
fn clone(&self) -> UpdateMessage
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 UpdateMessage
impl Debug for UpdateMessage
Source§impl<'de> Deserialize<'de> for UpdateMessage
impl<'de> Deserialize<'de> for UpdateMessage
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
Auto Trait Implementations§
impl Freeze for UpdateMessage
impl RefUnwindSafe for UpdateMessage
impl Send for UpdateMessage
impl Sync for UpdateMessage
impl Unpin for UpdateMessage
impl UnsafeUnpin for UpdateMessage
impl UnwindSafe for UpdateMessage
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