pub struct StorageFileToReadStreamConverter;Expand description
Converts a storage file to a read stream: the task of opening the stream
(TaskHandle<std::io::Result<Box<dyn Read>>>).
Implementations§
Source§impl StorageFileToReadStreamConverter
impl StorageFileToReadStreamConverter
Sourcepub fn instance() -> Rc<StorageFileToReadStreamConverter>
pub fn instance() -> Rc<StorageFileToReadStreamConverter>
Gets a shared instance of the converter (StorageFileToReadStreamConverter.Instance).
Trait Implementations§
Source§impl IValueConverter for StorageFileToReadStreamConverter
impl IValueConverter for StorageFileToReadStreamConverter
Source§fn convert(
&self,
value: Option<&BoxedValue>,
_target_type: ValueType,
_parameter: Option<&BoxedValue>,
_culture: &CultureInfo,
) -> Result<Option<BoxedValue>, BindingError>
fn convert( &self, value: Option<&BoxedValue>, _target_type: ValueType, _parameter: Option<&BoxedValue>, _culture: &CultureInfo, ) -> Result<Option<BoxedValue>, BindingError>
Converts a value on its way from the binding source to the target.
Source§fn convert_back(
&self,
_value: Option<&BoxedValue>,
_target_type: ValueType,
_parameter: Option<&BoxedValue>,
_culture: &CultureInfo,
) -> Result<Option<BoxedValue>, BindingError>
fn convert_back( &self, _value: Option<&BoxedValue>, _target_type: ValueType, _parameter: Option<&BoxedValue>, _culture: &CultureInfo, ) -> Result<Option<BoxedValue>, BindingError>
Converts a value on its way from the binding target to the source.
Source§impl MarkupTyped for StorageFileToReadStreamConverter
impl MarkupTyped for StorageFileToReadStreamConverter
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Auto Trait Implementations§
impl Freeze for StorageFileToReadStreamConverter
impl RefUnwindSafe for StorageFileToReadStreamConverter
impl Send for StorageFileToReadStreamConverter
impl Sync for StorageFileToReadStreamConverter
impl Unpin for StorageFileToReadStreamConverter
impl UnsafeUnpin for StorageFileToReadStreamConverter
impl UnwindSafe for StorageFileToReadStreamConverter
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more