pub struct FrameMigrator { /* private fields */ }
Expand description
Frame conversion wrapper for migration
Implementations§
Source§impl FrameMigrator
impl FrameMigrator
pub fn new(config: NatMigrationConfig) -> Self
Sourcepub fn should_send_rfc_frames(&self) -> bool
pub fn should_send_rfc_frames(&self) -> bool
Check if we should send RFC frames based on configuration
Sourcepub fn process_incoming_frame(
&self,
_frame_type: FrameType,
frame: Frame,
_sender_addr: SocketAddr,
) -> Result<Frame, TransportError>
pub fn process_incoming_frame( &self, _frame_type: FrameType, frame: Frame, _sender_addr: SocketAddr, ) -> Result<Frame, TransportError>
Process incoming frames based on configuration
Sourcepub fn should_accept_frame(&self, frame_type: FrameType) -> bool
pub fn should_accept_frame(&self, frame_type: FrameType) -> bool
Check if we should accept this frame type
Auto Trait Implementations§
impl Freeze for FrameMigrator
impl RefUnwindSafe for FrameMigrator
impl Send for FrameMigrator
impl Sync for FrameMigrator
impl Unpin for FrameMigrator
impl UnwindSafe for FrameMigrator
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