pub struct MulticastStrategy { /* private fields */ }Expand description
Multicast strategy: forward on all FIB nexthops except the incoming face.
Implementations§
Source§impl MulticastStrategy
impl MulticastStrategy
Sourcepub fn strategy_name() -> Name
pub fn strategy_name() -> Name
NFD strategy name: /localhost/nfd/strategy/multicast
pub fn new() -> Self
Trait Implementations§
Source§impl Default for MulticastStrategy
impl Default for MulticastStrategy
Source§impl Strategy for MulticastStrategy
impl Strategy for MulticastStrategy
Source§fn decide(
&self,
ctx: &StrategyContext<'_>,
) -> Option<SmallVec<[ForwardingAction; 2]>>
fn decide( &self, ctx: &StrategyContext<'_>, ) -> Option<SmallVec<[ForwardingAction; 2]>>
Synchronous fast path for forwarding decisions. Read more
Source§async fn after_receive_interest(
&self,
ctx: &StrategyContext<'_>,
) -> SmallVec<[ForwardingAction; 2]>
async fn after_receive_interest( &self, ctx: &StrategyContext<'_>, ) -> SmallVec<[ForwardingAction; 2]>
Called when an Interest arrives and needs a forwarding decision.
Source§async fn after_receive_data(
&self,
_ctx: &StrategyContext<'_>,
) -> SmallVec<[ForwardingAction; 2]>
async fn after_receive_data( &self, _ctx: &StrategyContext<'_>, ) -> SmallVec<[ForwardingAction; 2]>
Called when Data arrives and needs to be forwarded to consumers.
Source§fn on_interest_timeout(
&self,
_ctx: &StrategyContext<'_>,
) -> impl Future<Output = ForwardingAction> + Send
fn on_interest_timeout( &self, _ctx: &StrategyContext<'_>, ) -> impl Future<Output = ForwardingAction> + Send
Called when a PIT entry times out. Default: suppress (let the entry die).
Source§fn on_nack(
&self,
_ctx: &StrategyContext<'_>,
_reason: NackReason,
) -> impl Future<Output = ForwardingAction> + Send
fn on_nack( &self, _ctx: &StrategyContext<'_>, _reason: NackReason, ) -> impl Future<Output = ForwardingAction> + Send
Called when a Nack arrives on an out-record face.
Auto Trait Implementations§
impl !Freeze for MulticastStrategy
impl RefUnwindSafe for MulticastStrategy
impl Send for MulticastStrategy
impl Sync for MulticastStrategy
impl Unpin for MulticastStrategy
impl UnwindSafe for MulticastStrategy
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