Struct easyjack::UnknownPortHandle
[−]
[src]
pub struct UnknownPortHandle { /* fields omitted */ }
Methods
impl UnknownPortHandle
[src]
fn as_input<SampleType>(self) -> Option<InputPortHandle<SampleType>>
Attempts to coerce the port into an input port This function will test the port's flags to ensure that it is actually an input port
fn as_output<SampleType>(self) -> Option<OutputPortHandle<SampleType>>
Attempts to coerce the port into an output port This function will test the port's flags to ensure that it is actually an output port
unsafe fn force_as_input<SampleType>(self) -> InputPortHandle<SampleType>
Forces coercion to an input port This is marked unsafe because it DOES NOT check the port flags before coercing it to the new type. If you are 100% sure your port is an input port, this call can save you some extra operations. If not, use the safe version!
unsafe fn force_as_output<SampleType>(self) -> OutputPortHandle<SampleType>
Forces coercion to an output port This is marked unsafe because it DOES NOT check the port flags before coercing it to the new type. If you are 100% sure your port is an output port, this call can save you some extra operations. If not, use the safe version!
Trait Implementations
impl Debug for UnknownPortHandle
[src]
impl Clone for UnknownPortHandle
[src]
fn clone(&self) -> UnknownPortHandle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for UnknownPortHandle
[src]
impl Port for UnknownPortHandle
[src]
fn get_name(&self) -> String
Gets the port's assigned full name (including the client name and the colon)
fn get_port_flags(&self) -> PortFlags
Get the flags used to construct this port