Struct safe_core::nfs::File
[−]
[src]
pub struct File { /* fields omitted */ }
Representation of a File to be put into the network. Could be any kind of file: text, music, video, etc.
Methods
impl File
[src]
fn new(user_metadata: Vec<u8>) -> File
[src]
Create a new instance of FileMetadata
fn into_repr_c(self) -> FfiFile
[src]
Construct FFI wrapper for the native rust File
, consuming the file.
fn created_time(&self) -> &DateTime<Utc>
[src]
Get time of creation
fn modified_time(&self) -> &DateTime<Utc>
[src]
Get time of modification
fn data_map_name(&self) -> &XorName
[src]
Get the network name of the data containing the data-map of the File
fn size(&self) -> u64
[src]
Get size information
fn user_metadata(&self) -> &[u8]
[src]
Get user setteble custom metadata
fn set_data_map_name(&mut self, datamap_name: XorName)
[src]
Set the data-map name of the File
fn set_size(&mut self, size: u64)
[src]
Set the size of file
fn set_created_time(&mut self, created_time: DateTime<Utc>)
[src]
Set time of creation
fn set_modified_time(&mut self, modified_time: DateTime<Utc>)
[src]
Set time of modification
fn set_user_metadata(&mut self, user_metadata: Vec<u8>)
[src]
User setteble metadata for custom metadata
Trait Implementations
impl Debug for File
[src]
impl PartialEq for File
[src]
fn eq(&self, __arg_0: &File) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &File) -> bool
[src]
This method tests for !=
.
impl Eq for File
[src]
impl PartialOrd for File
[src]
fn partial_cmp(&self, __arg_0: &File) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &File) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &File) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &File) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &File) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for File
[src]
fn cmp(&self, __arg_0: &File) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl Clone for File
[src]
fn clone(&self) -> File
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more