pub struct OptionExposureSink(/* private fields */);Expand description
A feed’s destination for complete exposure snapshots. Cheap to clone. Updates replace the latest snapshot without queuing or adding to computed gamma.
Implementations§
Source§impl OptionExposureSink
impl OptionExposureSink
Sourcepub fn push(&self, value: OptionExposure) -> Result<(), FeedError>
pub fn push(&self, value: OptionExposure) -> Result<(), FeedError>
Replace the held snapshot and wake the host. Refuse the whole snapshot for a nonfinite
figure, invalid strike, expiry outside the query, different kind or over 100,000 rows.
Report FeedError::InvalidData without changing the previous snapshot; an accepted
push clears the error. Inactive sinks ignore pushes.
Sourcepub fn report_error(&self, error: FeedError)
pub fn report_error(&self, error: FeedError)
Report a failure, retaining the last accepted snapshot, and wake the host. Historical requests finish on this error; live requests can recover on a later push.
Trait Implementations§
Source§impl Clone for OptionExposureSink
impl Clone for OptionExposureSink
Source§fn clone(&self) -> OptionExposureSink
fn clone(&self) -> OptionExposureSink
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for OptionExposureSink
impl !UnwindSafe for OptionExposureSink
impl Freeze for OptionExposureSink
impl Send for OptionExposureSink
impl Sync for OptionExposureSink
impl Unpin for OptionExposureSink
impl UnsafeUnpin for OptionExposureSink
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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