pub struct RecorderRecordRequest {
pub source: Option<RecordSource>,
pub stream_type: Option<AudioStreamType>,
pub duration: Option<i64>,
pub canceler: Option<ServerEnd<RecordCancelerMarker>>,
pub gain_settings: Option<GainSettings>,
pub buffer_size: Option<u64>,
pub wav_data: Option<Socket>,
/* private fields */
}
Fields§
§source: Option<RecordSource>
The source from which to record the audio.
Required.
stream_type: Option<AudioStreamType>
The stream format in which to record the audio.
Required.
duration: Option<i64>
Duration in nanoseconds to record audio data.
If not specified, Recorder
will record and write data to the
socket until it receives a stop signal on canceler
.
If present, the record request is still cancelable via canceler
.
Optional.
canceler: Option<ServerEnd<RecordCancelerMarker>>
Handle to signal when to stop sending data back to the client.
Required.
gain_settings: Option<GainSettings>
Record gain settings.
Only used for the capturer
and loopback
sources.
Optional.
buffer_size: Option<u64>
Buffer size.
Optional. If not specified, defaults to a size that is enough to hold one second of audio data.
wav_data: Option<Socket>
Sink for audio data.
The captured data here will be written here as a complete WAV file.
Required.
Trait Implementations§
Source§impl Debug for RecorderRecordRequest
impl Debug for RecorderRecordRequest
Source§impl Decode<RecorderRecordRequest, DefaultFuchsiaResourceDialect> for RecorderRecordRequest
impl Decode<RecorderRecordRequest, DefaultFuchsiaResourceDialect> for RecorderRecordRequest
Source§impl Default for RecorderRecordRequest
impl Default for RecorderRecordRequest
Source§fn default() -> RecorderRecordRequest
fn default() -> RecorderRecordRequest
Returns the “default value” for a type. Read more
Source§impl Encode<RecorderRecordRequest, DefaultFuchsiaResourceDialect> for &mut RecorderRecordRequest
impl Encode<RecorderRecordRequest, DefaultFuchsiaResourceDialect> for &mut RecorderRecordRequest
Source§impl PartialEq for RecorderRecordRequest
impl PartialEq for RecorderRecordRequest
Source§impl ResourceTypeMarker for RecorderRecordRequest
impl ResourceTypeMarker for RecorderRecordRequest
Source§type Borrowed<'a> = &'a mut RecorderRecordRequest
type Borrowed<'a> = &'a mut RecorderRecordRequest
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for RecorderRecordRequest
impl TypeMarker for RecorderRecordRequest
Source§type Owned = RecorderRecordRequest
type Owned = RecorderRecordRequest
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for RecorderRecordRequest
impl StructuralPartialEq for RecorderRecordRequest
Auto Trait Implementations§
impl Freeze for RecorderRecordRequest
impl RefUnwindSafe for RecorderRecordRequest
impl Send for RecorderRecordRequest
impl Sync for RecorderRecordRequest
impl Unpin for RecorderRecordRequest
impl UnwindSafe for RecorderRecordRequest
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