pub struct Reader<T, C>where
T: Read,
C: CapabilitiesRef,{
pub stream: T,
pub capabilities: C,
}
Expand description
The BGPReader can read BGP messages from a BGP-formatted stream.
Fields§
§stream: T
The stream from which BGP messages will be read.
capabilities: C
Capability parameters that distinguish how BGP messages should be parsed.
Implementations§
Source§impl<T, C> Reader<T, C>where
T: Read,
C: CapabilitiesRef,
impl<T, C> Reader<T, C>where
T: Read,
C: CapabilitiesRef,
Auto Trait Implementations§
impl<T, C> Freeze for Reader<T, C>
impl<T, C> RefUnwindSafe for Reader<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Reader<T, C>
impl<T, C> Sync for Reader<T, C>
impl<T, C> Unpin for Reader<T, C>
impl<T, C> UnwindSafe for Reader<T, C>where
T: UnwindSafe,
C: UnwindSafe,
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