pub struct LogStreamPlan {
pub feedback: Option<FeedbackPolicy>,
pub destination_id: String,
pub mtu_bytes: u16,
pub symbol_size: u16,
pub bitrate_bps: u64,
pub memory_budget_kib: u32,
pub max_latency_ms: u32,
pub burst_packets: u32,
pub continuous: ResolvedContinuousFec,
pub objects: ResolvedObjectFec,
pub recovery_interval: u32,
pub max_record_bytes: u64,
}Expand description
Link and codec policy after RON validation and MTU resolution.
Fields§
§feedback: Option<FeedbackPolicy>§destination_id: String§mtu_bytes: u16§symbol_size: u16§bitrate_bps: u64§memory_budget_kib: u32§max_latency_ms: u32§burst_packets: u32§continuous: ResolvedContinuousFec§objects: ResolvedObjectFec§recovery_interval: u32Recovery interval in CopperLists.
max_record_bytes: u64Implementations§
Source§impl LogStreamPlan
impl LogStreamPlan
Sourcepub fn resolve(config: &LogStreamDestinationConfig) -> Result<Self>
pub fn resolve(config: &LogStreamDestinationConfig) -> Result<Self>
Resolves one RON destination into local sender policy and wire geometry. Symbol size is bounded by both the link MTU and preallocated sender storage; a larger MTU does not increase the runtime’s memory footprint.
Sourcepub fn validate(&self) -> Result<()>
pub fn validate(&self) -> Result<()>
Validates local sender policy, capacities, and memory budget.
pub fn rlc_config(&self) -> Result<RlcConfig>
Sourcepub fn receiver_requirements(&self) -> ReceiverRequirements
pub fn receiver_requirements(&self) -> ReceiverRequirements
Selects only the geometry and bounds needed by the receiver.
Sourcepub fn sender_config(
&self,
identity: StreamIdentity,
schema: ApplicationSchema,
context: SectionContext,
) -> Result<LogStreamSenderConfig>
pub fn sender_config( &self, identity: StreamIdentity, schema: ApplicationSchema, context: SectionContext, ) -> Result<LogStreamSenderConfig>
Builds both sender lanes and their canonical repeated manifest.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for LogStreamPlan
impl<'__de, __Context> BorrowDecode<'__de, __Context> for LogStreamPlan
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for LogStreamPlan
impl Clone for LogStreamPlan
Source§impl Debug for LogStreamPlan
impl Debug for LogStreamPlan
Source§impl<__Context> Decode<__Context> for LogStreamPlan
impl<__Context> Decode<__Context> for LogStreamPlan
Source§impl Encode for LogStreamPlan
impl Encode for LogStreamPlan
impl Eq for LogStreamPlan
Source§impl PartialEq for LogStreamPlan
impl PartialEq for LogStreamPlan
impl StructuralPartialEq for LogStreamPlan
Auto Trait Implementations§
impl Freeze for LogStreamPlan
impl RefUnwindSafe for LogStreamPlan
impl Send for LogStreamPlan
impl Sync for LogStreamPlan
impl Unpin for LogStreamPlan
impl UnsafeUnpin for LogStreamPlan
impl UnwindSafe for LogStreamPlan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more