pub(crate) struct LincolnWriterOutput {
unit: Unsigned6Bit,
mode: Unsigned12Bit,
connected: bool,
transmit_will_be_finished_at: Option<Duration>,
state: Rc<RefCell<LincolnState>>,
}Fields§
§unit: Unsigned6Bit§mode: Unsigned12Bit§connected: bool§transmit_will_be_finished_at: Option<Duration>§state: Rc<RefCell<LincolnState>>Implementations§
Source§impl LincolnWriterOutput
impl LincolnWriterOutput
pub(crate) fn new( unit: Unsigned6Bit, state: Rc<RefCell<LincolnState>>, ) -> LincolnWriterOutput
fn lw_number(&self) -> u8
fn make_alarm(&self, details: AlarmDetails) -> Alarm
Trait Implementations§
Source§impl Debug for LincolnWriterOutput
impl Debug for LincolnWriterOutput
Source§impl Unit for LincolnWriterOutput
impl Unit for LincolnWriterOutput
Source§fn poll(&mut self, ctx: &Context) -> UnitStatus
fn poll(&mut self, ctx: &Context) -> UnitStatus
Query the status of the unit.
Source§fn connect(&mut self, _ctx: &Context, mode: Unsigned12Bit)
fn connect(&mut self, _ctx: &Context, mode: Unsigned12Bit)
Connect the unit.
Source§fn read(
&mut self,
_ctx: &Context,
diags: &CurrentInstructionDiagnostics,
) -> Result<MaskedWord, TransferFailed>
fn read( &mut self, _ctx: &Context, diags: &CurrentInstructionDiagnostics, ) -> Result<MaskedWord, TransferFailed>
Handle a TSD on an input channel.
Source§fn write(
&mut self,
ctx: &Context,
source: Unsigned36Bit,
diagnostics: &CurrentInstructionDiagnostics,
) -> Result<Option<OutputEvent>, TransferFailed>
fn write( &mut self, ctx: &Context, source: Unsigned36Bit, diagnostics: &CurrentInstructionDiagnostics, ) -> Result<Option<OutputEvent>, TransferFailed>
Handle a TSD on an output channel.
Source§fn transfer_mode(&self) -> TransferMode
fn transfer_mode(&self) -> TransferMode
Query the
TransferMode of the unit.Source§fn disconnect(&mut self, _ctx: &Context)
fn disconnect(&mut self, _ctx: &Context)
Disconnect the unit.
Source§fn on_input_event(
&mut self,
_ctx: &Context,
_event: InputEvent,
) -> Result<InputFlagRaised, InputEventError>
fn on_input_event( &mut self, _ctx: &Context, _event: InputEvent, ) -> Result<InputFlagRaised, InputEventError>
Announce an input event for a unit.
Auto Trait Implementations§
impl Freeze for LincolnWriterOutput
impl !RefUnwindSafe for LincolnWriterOutput
impl !Send for LincolnWriterOutput
impl !Sync for LincolnWriterOutput
impl Unpin for LincolnWriterOutput
impl UnsafeUnpin for LincolnWriterOutput
impl !UnwindSafe for LincolnWriterOutput
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
Source§impl<S, T> Upcast<T> for S
impl<S, T> Upcast<T> for S
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.