Skip to main content

admitted_part

Function admitted_part 

Source
pub fn admitted_part<'a>(
    session: &mut UploadSession,
    bytes: &'a [u8],
) -> Result<PartPermit<'a>, StorageError>
Expand description

Admit bytes as session’s next part as a connection does with no cooldown live and every destination open, for a fake Storage of a test: the part must fit the session, and a plan’s first part marks it.